Tagged Questions

For a full list of the status codes see the HTTP 1.1 specification

learn more… | top users | synonyms (1)

5
votes
0answers
18 views

A web page that requires login should redirect to the login page or simply display the form?

When a web page offers content that require the user to log in there are two ways to have them authenticate themselves: The web application stores the URL, then redirects to a separate login page, ...
0
votes
0answers
26 views

How to set correctly cookie value in headers

Maybe you will help me in this "simple" case: request2 = urllib.request.Request(url) cj2 = http.cookiejar.CookieJar() urlOpener2 = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj2)) ...
-2
votes
0answers
38 views

Python script - How to set the right server, when I perform request/open of application

Python 3.2.2, I want to check HTTP status code (eg. 200 or 404) on some www application. There are five servers and each server have a copy of this www application (The user is automatically ...
0
votes
1answer
131 views

Returning http status code from ASP.NET MVC 4 Web Api controller

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 class TryController : ApiController { ...
0
votes
1answer
30 views

Cannot Set Status Code

I'm using the basic Response.StatusCode to set the status code to 9999. This page is being called via an AJAX call, checking the status code on readyState = 4 and popping an alert on 9999 using the ...
2
votes
1answer
52 views

Tomcat - how to get http 500 instead of 404 when application wasn't deployed correctly?

We have several REST applications using Spring MVC. Time to time some application after deploy don’t start. When our Javascript client tries access resource url, it gets 404 status code. Therefore it ...
3
votes
1answer
39 views

What is the most appropriate HTTP status code to return if a required header is missing?

I read What HTTP status response code should I use if the request is missing a required parameter? but it did not specifically ask about headers and there didn't seem to be a consensus. The context ...
0
votes
1answer
56 views

Wireless Authentication Page iOS app

I'm not really sure how to word this exactly, so hopefully someone can make sense of it. I've been working on an iPad app that syncs files from a server to your iPad and lets you build presentations ...
0
votes
1answer
39 views

App Engine 401/403 Status Codes Not Working on WebApp2

I am trying to raise a 401/403 status for when a user attempts to access something they don't have privileges to. I used the Webapp2 Exceptions example which generates the proper error codes for ...
2
votes
2answers
36 views

When Updating a resource, what HTTP Status Code is returned when the update is successful?

So i've got a website that accepts an HTTP-PUT for a particular resource, eg. /contact which will allow the consumer to update a contact, assuming they have passed validation. So I update the record, ...
1
vote
2answers
54 views

unable to get correct status code in AJAX Error handler

I am not able to get correct error code in the error handler of AJAX request. Everytime the error occurs, it returns me statusCode = 500. I tried to set it explicitly in my service as ...
0
votes
1answer
62 views

automatically redirect user to login page using error code

I have several web services that are being called using AJAX requests from Asp.Net page. If the user's authorization fails, i want to redirect him to the login page. The problem i am facing is i have ...
2
votes
3answers
55 views

How can I check if an int is a legit HttpStatusCode in .NET?

I wish to make sure that the number a person provides, is a legit HttpStatusCode. At first I thought of using Enum.TryParse(..) or Enum.Parse(..) but it's possible I get an invalid result with some ...
0
votes
0answers
14 views

Which HTTP status code return if session is in incorrect state

I authenticates user via social networks. When authentication process starts, it get user data from social network and make redirects to page where user can fill additional information. Before ...
0
votes
1answer
121 views

AJAX status 12030

I am sending an ajax XMLHttpRequest using the POST method. When the request is sent, I am getting a readyState of 4 with a status of 12030. I know 12030 is a Microsoft specific state code that ...

1 2 3 4 5 21
15 30 50 per page