Link to home
Start Free TrialLog in
Avatar of srikotesh
srikotesh

asked on

How the Restclient detecting http error codes

Hi Experts,

WHEN I AM REQUESTING SERVICE URI FROM REST CLIENT.

how the rest client is generating http error codes.
what will be happen internally

For example there is a post method

empid,name,address
in my pojo class all these fields will be mentioned accordingly.

Now from the restclient when i am passing requestbody by changing empid as EMPID
it will throw 404 Exception.
how it is reading the parameters


Thanks,
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

404 and other HTTP error codes are generated by the web server when it is attempting to process file requests.  If you see a 404, the process didn't even get to the REST server code.

Here is a list and description of the HTTP codes:  https://en.wikipedia.org/wiki/List_of_HTTP_status_codes  Most of them you will never see because they are not errors.
Avatar of srikotesh
srikotesh

ASKER

when I invoke the request from rest client how the server reading that my pojo class field name is not mapped.

if possible provide the flow how it is verifying
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial