Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5839909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:39:33+00:00 2026-05-22T11:39:33+00:00

I have a REST web service class which i call HttpRequest using curl.I wrote

  • 0

I have a REST web service class which i call HttpRequest using curl.I wrote the web service using jersey framework and java in Netbean IDE.If the HttpRequest syntax is correct, the response shows Ok. But When I request the wrong syntax , the response show like this :

< HTTP/1.1 400 Bad Request
< X-Powered-By: Servlet/3.0
< Server: GlassFish Server Open Source Edition 3.0.1
< Content-Type: text/html
< Content-Length: 1049
< Date: Mon, 16 May 2011 01:13:31 GMT
< Connection: close
<
GlassFish Server Open Source Edition 3.0.1 – Error report style type=”text/css” H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} A {color : black;}HR {color : #525D76;}–> style> HTTP Status 400 –


type Status report
message
descriptionThe request sent by the client was syntactically incorrect ().


GlassFish Server Open Source Edition* Closing connection #0

My question is how to remove or hide the code here in java?Do anyone know if the response is 400 or 403 or 500. If can remove or hide, can I replace something with exception using java ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T11:39:34+00:00Added an answer on May 22, 2026 at 11:39 am

    You can use the error-page tag (1 per error code), in your application’s web.xml to map specific errors to custom error pages. Example (in your web.xml):

    <error-page>
     <error-code>400</error-code>
     <location>/myCustomErrorPage.jsp</location>
    </error-page>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written REST web service in netbean IDE using jersey framework and java.
I have a web service class that the rest of the framework depends on
I'm using Jersey to create a REST web service for a server component. The
I have REST Web service written in Java. Now I want to disable Web
I have a C# WCF REST Service which allows the addition of a bookmark,
Okay, so I'm designing a stand-alone web service (using RestLET as my framework). My
I ve created a sample REST web service which writes some data in a
While creating a simple client for a REST service which I have stubbed out,
I have to use an interface in my REST web service. Here is the
I have a Silverlight client that I need to call a web service. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.