Thursday, September 12, 2019

api testing - http status

Get to know the http status code
1. 405
https://docs.microsoft.com/en-us/aspnet/web-api/overview/testing-and-debugging/troubleshooting-http-405-errors-after-publishing-web-api-applications

Method Not Allowed"the method specified in the Request-Line is not allowed for the resource identified by the Request-URI."

2. 400
400 (Bad Request)
400 is the generic client-side error status, used when no other 4xx error code is appropriate. Errors can be like malformed request syntax, invalid request message parameters, or deceptive request routing etc.


The client SHOULD NOT repeat the request without modifications.

3. 404

404 (Not Found)

The 404 error status code indicates that the REST API can’t map the client’s URI to a resource but may be available in the future.


Testing REST API Manually




No comments:

Post a Comment

API interview questions

  https://www.katalon.com/resources-center/blog/web-api-testing-interview-questions/ Top 50+ Web API Testing Interview Questions [Ultimate l...