BloggingBIG Logo
Search
  • Blogs
  • How we work
  • Write Guest Post
Get started

HTTP Status Code 302 Found

by Saurabh Chalise

  • 3 min read
    • HTTP Status
Share this content
HTTP Status Code 302 Found image

Navigation

  • What does Status Code 302 Found mean?
  • Location Header Field
    •  Syntax
    • Example 
  • Status
  • Specifications
  • Browser compatibility
  • 302 CODE REFERENCES
  • FAQs
    • What does Status Code 302 Found mean?
    • What is the use of the Location Header field?
  • Conclusion

What does Status Code 302 Found mean?

Status code 302 Found is one of the classes of 3xx(redirection) response code that indicates the target resource or the resource requested resides under a different URL(Uniform Resource Locator). 

The URL is given by the Location Header. A client that receives a status code 302 Found Response code should continue using the original URL for future requests since the location might be changed in the future.

The location header field should be generated by the server in the response that contains a URI(Uniform Resource Indicator) for the different URI. Similarly, the Location field value may be used by the user agent for automatic redirection.

Location Header Field

In some responses, the Location header field is used to refer to a particular resource in connection to the response.  The type of relationship is defined by the combination method of the request and status code semantics.

Location = URI-reference

 It only provides a meaning when used with a 3xx (redirection) or 201 (created) status response.

 Syntax

Location:<url>

Example 

Location:/index.html

Status

302 Found

Specifications

Specifications
Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content (HTTP/1.1)# status.302

Browser compatibility

Http status code 302-Browser compatibility
Source:mozilla.org

Full Support

Read more: HTTP Status Code 202 Accepted

302 CODE REFERENCES

Rails HTTP Status Symbol: found
Go HTTP Status Constanthttp.StatusFound
Symfony HTTP Status ConstantResponse::HTTP_FOUND
Python2 HTTP Status Constanthttplib.FOUND
Python3+ HTTP Status ConstantHTTP.client.FOUND
Python3.5+ HTTP Status ConstantHTTP.HTTPStatus.FOUND

FAQs

What does Status Code 302 Found mean?

Status Code 302 Found is one of the classes of 3xx(redirection) response code that indicates the target resource or the resource requested resides under a different URL(Uniform Resource Locator). 

What is the use of the Location Header field?

In some responses, the Location header field is used to refer to a particular resource in connection to the response.  It only provides a meaning when used with a 3xx (redirection) or 201 (created) status response. 
Example:
Location:/index.html
What does the 302 and 301 status code suggest?
A 302 redirect means that the page was temporarily moved, while a 301 means that it was permanently moved.

credit:ClickMinded

Conclusion

I hope this article was able to help you with your doubts and queries related to the HTTP status code 302(Found). Still, if there are any queries related to this topic, feel free to ask in the comment section, we would be happy to assist you. Thank you.

Share
Tweet
Share
0 Shares
Saurabh Chalise image

Saurabh Chalise

Be first to comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

More from HTTP Status

HTTP Status Code 499 Client Closed Request image

HTTP Status Code 499 Client Closed Request

Kedar Dangal image

by Kedar Dangal

  • 4 min read
    • HTTP Status
HTTP Status Code 431 Request Header Fields Too Large image

HTTP Status Code 431 Request Header Fields Too Large

Kedar Dangal image

by Kedar Dangal

  • 4 min read
    • HTTP Status
HTTP Status Code 429-Too Many Request image

HTTP Status Code 429-Too Many Request

Saurabh Chalise image

by Saurabh Chalise

  • 4 min read
    • HTTP Status

Quick links

  • Siteground black friday deals
  • Wp engine black friday deals
  • Greengeeks black friday deals
  • Tmd hosting black friday deals
  • Fastcomet black friday deals
  • Hostwinds black friday deals
  • bluehost black friday
  • Namecheap black friday deals
  • Ionos 1 & 1 black friday deals
  • Hostgator black friday deals
  • ipage black friday deals
  • wpx hosting black friday deals
BloggingBIG logo
  • About
  • DISCLAIMER
  • Disclouser for Blogging BIG
  • Terms and Conditions
  • Privacy Policy
  • Sitemap
Developed by Fnclick
Back To Top