Hi Guest 1 HomePage 1 Jobs 1 WalkIn 1Articles  

 :) Latest Topic
Define main difference in between REST and RESTful?
Write down main difference between REST and WebSocket
Can you mention the disadvantages of RESTful web services?
Can we send payload in the GET and DELETE methods?
Why we used REST APIs and some example?
What are top most common challenges of REST API security?
Guidelines to design a REST API?
How can you test a REST API?
How can you secure a REST API?
What is REST API caching and different ways to implement it?
Article Topic about the REST API status code
What is REST API authentication?
 


  

 
Article Topic about the REST API status code
Question Posted on 12 May 2025

Home >> REST >> REST Questions >> Article Topic about the REST API status code


Article Topic about the REST API status code
Representational State Transfer(REST) is a software architectural style which defines a set of rules/constraints which are used to create web services. And web services which conform to the REST architectural style that are called RESTful web services. And this will provide interoperability between computer systems on the internet.

And when we say about the REST API (Application Programming Interface) is a set of rules which defines how can different software programs will connect with each other. And whenever you make a request to a REST API, the server responds with a specific status code which will indicates wheater the request are successful or not.

Below are the different status codes with 3-digit numbers which are categorized in below five groups:-

(1)Informational (100-199):-Here these status codes in between (100-199) mainly indicate that the request has been received and the process is continuing.

(2)Success (200-299):-Here these status codes in between (200-299) mainly indicates that the request was successful and the requested information has been returned.

(3)Redirection (300-399):-Here these status codes in between (300-399) mainly indicates that request has been received but further action is needed in order to complete the request.

(4)Client Error (400-499):-Here these status codes in between (400-499) mainly indicates that containe error in the request made by the client.

(5)Server Error (500-599):-Here these status codes in between (500-599) mainly indicate that there is error on the server side while processing the request.


Now we will jump on to the most common status codes which you might encounter when working with the REST API:-

(1)200 OK:-This status code will mainly indicates that the request made was successful and the requested information has been successfully returned.

(2)201 Created:-Here this status code will indicates that a new resources has been created as per you request is raised.

(3)400 Bad Request:-Here this status code will indicates that there is error occur in the request made by the client/customer/user. And reason can be like invalid request format or we can say a parameter is missing which must required in calling API.

(4)401 Unauthorized:-Here this status code will indicates that the client must authenticate itself to get the requested response.

(5)403 Forbidden:-Here this status code will mainly indicates that the client does not have the permission to access the requested resource.

(6)404 Not Found:-Here this status code will mainly indicates that the requested resource not found as you requested.

(7)500 Internal Server Error:-Here this status will mainly indicates that there was an error on the server while processing the request.





Other Important Questions
Guidelines to design a REST API?
Can you mention the disadvantages of RESTful web services?
Can we send payload in the GET and DELETE methods?
Define main difference in between REST and RESTful?
Write down main difference between REST and WebSocket







 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |