About 253 results
Open links in new tab
  1. Response: status property - Web APIs | MDN - MDN Web Docs

    Mar 13, 2025 · The status read-only property of the Response interface contains the HTTP status codes of the response. For example, 200 for success, 404 if the resource could not be found.

  2. HTTP Status Codes - REST API Tutorial

    Aug 9, 2024 · REST APIs use the Status-Line part of an HTTP response message to inform clients of their request’s overarching result. RFC 2616 defines the Status-Line syntax as shown below: HTTP defines these standard status codes that can be used to convey the results of a client’s request. The status codes are divided into five categories.

  3. Returning http status code from Web Api controller

    May 18, 2012 · I'm trying to return a status code of 304 not modified for a GET method in a web api controller. The only way I succeeded was something like this: public User GetUser(int userId, DateTime lastModifiedAtClient) var user = new DataEntities().Users.First(p => p.Id == userId); if (user.LastModified <= lastModifiedAtClient)

  4. Getting Http Status code number (200, 301, 404, etc.) from ...

    Just coerce the StatusCode to int. response = (HttpWebResponse)request.GetResponse(); // This will have statii from 200 to 30x. statusNumber = (int)response.StatusCode; // Statii 400 to 50x will be here. statusNumber = (int)we.Response.StatusCode; ..and I am …

  5. Best way to check status code of http response?

    Apr 27, 2020 · The status code is the status property on the response object. Also, unless you're using JSON with your error responses (which some people do, of course), you need to check the status code (or the ok flag) before calling json:

  6. HTTP Status Codes in ASP.NET Core Web API

    HTTP status codes are an essential part of any Web API, i.e., Restful Services, as they provide information about the status of the HTTP request. In ASP.NET Core Web API, these status codes can be returned to the client (such as a browser or a mobile app) from the server to indicate success, failure, or the state of the requested resource.

  7. HTTP Status Codes: A Comprehensive Guide to API Responses

    Feb 1, 2025 · HTTP status codes are essential for communication between clients and servers in web APIs. They provide quick insights into the outcome of a request, enabling engineers to diagnose issues and improve user experiences. These codes are grouped into five classes: 1xx (Informational): The request was received, and the process is continuing.

  8. Check HTTP Response Status Codes - Matthew Edgar

    Feb 21, 2025 · There are several tools you can use to check the HTTP status codes your website’s pages currently return. I suggest you use several of these tools when evaluating your website’s performance. For a basic one-by-one analysis of a page, you can use a header check tool like REDbot.

  9. REST API - HTTP Status Codes - Java Guides

    In this article, we will learn about commonly used HTTP status codes in RESTful APIs. Learn about RESTful APIs at JavaGuides. For every HTTP request, the server returns a status code indicating the processing status of the request. Understanding these status codes will help us design better RESTful web services.

  10. Bulk URL HTTP Status Code, Header & Redirect Checker

    Analyse up to 100 URLs simultaneously, checking status codes and redirects with flexible HTTP/HTTPS settings for schemeless URLs. Easily detect HTTP errors like 4xx and 5xx status codes. Analyse failed requests to know which URLs or links to fix. Avoid server errors by limiting simultaneous requests.

  11. Some results have been removed
Refresh