Showing posts with label http-status-codes. Show all posts
Showing posts with label http-status-codes. Show all posts

Monday, June 11, 2012

What is correct HTTP status code when redirecting to a login page?


When a user is not logged in and tries to access an page that requires login, what is the correct HTTP status code for a redirect to the login page?

Friday, April 27, 2012

Android: How get the status-code of an HttpClient request


I want to download a file and need to check the response status code (ie HTTP /1.1 200 OK ). This is a snipped of my code: