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,
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,
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
if possible provide the flow how it is verifying
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.