Questions tagged [http-status]

The status code describes the state of the response from the web server.

Each Status-Code is described in the W3C HTTP 1.1 specifications, including a description of which method(s) it can follow and any metainformation required in the response.

78 questions
1
vote
1 answer

Getting HTTP response codes from a pcap with Scapy

I'm reading a pcap file using scapy and I am interested in finding anomalies such as unusual TCP flags or HTTP codes like 403, 429 etc. I am able to find out using TCP ports that this traffic belongs to HTTP but how to get status codes of HTTP and…
aneela
  • 1,457
  • 3
  • 24
  • 45
1
vote
1 answer

Which HTTP Status code should indicate failed pre-conditions?

I have a GET /reports endpoint which is having pre-condition - list of particular forms should be filled before we fetch data for reports. In case any of those forms are not filled, an error should be sent to the client saying "X form should be…
1
vote
1 answer

206 Partial Content does not accept data from server

I'm trying return video partially, using 206 Partial Content, I transfer all the headers correctly, but the request passes only 4kb, but if I answer 200 OK, the video will work, what could be the problem? (If I answer 200 OK, then I can't rewind the…
Sunny TheBlue
  • 53
  • 1
  • 9
1
vote
2 answers

Multi threading script for HTTP status codes

Hi Stackoverflow community, I would like to create a script that uses multi threading to create a high number of parallel requests for HTTP status codes on a large list of URL's (more than 30k vhosts). The requests can be executed from the same…
1
vote
1 answer

REST HTTP Status Code Best Practice for validation API

I am creating a simple API to validate a membership. Client will have to input a String ID and Server will check if the ID is a valid member of our, lets say, community. The ID must be numeric only, with length 10. Quite simple right? If the ID is a…
Silly Sally
  • 1,027
  • 2
  • 10
  • 15
1
vote
2 answers

REST response code for resources that cannot be updated

I have a resource which cannot be updated (events). Hence I am allowing only Post & Get operations. (I haven't chosen PUT because the eventId is generated at server end and returned as part of response). I already have a combination of three fields…
Harish
  • 7,589
  • 10
  • 36
  • 47
1
vote
1 answer

Correct return status code for authentication issues?

We have a rest service that we use to authenticate our clients. There are some cases where we want to report to the client more information than just "authorization failed". For example if their account gets locked after too many attempts we will…
coding4fun
  • 8,038
  • 13
  • 58
  • 85
1
vote
1 answer

Cohttp - Matching on different HTTP response codes

When using Cohttp_async to perform a request, I'm handling an HTTP response code of 302 (Temporary Redirect) in the following manner: let rec download uri = Cohttp_async.Client.get uri >>= fun (response, body) -> let http_code =…
pseudoramble
  • 2,541
  • 22
  • 28
1
vote
1 answer

410 Gone error after WordPress update

Last night I updated joinordie.com to WP 3.9.1 via the dashboard and today the site gives a 410 Gone error. I'm not certain that the issue is WordPress but it seems likely due to the timing, right? Gone The requested resource / is no longer…
ryanve
  • 50,076
  • 30
  • 102
  • 137
1
vote
1 answer

Mule returns 500 instead of 400

I am making a http call to a flow that will call an http outbound endpoint. The outbound endpoint returns a message with http.status = 400. Until the last moment when I am in my flow the headers will show that the http.status is in fact 400. But…
user3510748
1
vote
1 answer

Capturing PhoneGap InAppBrowser HTTP Status errors

I have a PhoneGap application that loads web content from a web server which requires authentication. I have a solution to post user credentials in the HTTP headers over HTTPS when I launch the web content in the InAppBrowser, once user is accessing…
MNDaveC
  • 141
  • 7
1
vote
2 answers

Http status code for bad params in post request

I have a server in which the client can register itself as a device (like a mobile device). For the registration, the device must be associated with another resource (say an user) which is already registered on the server. To do that, the client…
Oliver
  • 115
  • 2
  • 11
1
vote
1 answer

Spring 3.2 MVC -- HTTP Status 405 Request method 'POST' not supported

I'm getting a 405 error from my Spring 3.2 MVC form. It's telling me POST is not supported, but both my form and controller method use it. Here is the relevant portion of my form.
user636859
1
vote
1 answer

Canvas data to image

I'm using canvas.toDataURL to save images as text in the indexDB, when I retrieve the data I want to convert that data to images, the problem is that I get an error saying Request-URI Too Long http status code 414 var c =…
andrei
  • 8,252
  • 14
  • 51
  • 66
0
votes
3 answers

What is the correct HTTP status for exceptions?

What HTTP status should I return if my script throws an exception? 200 OK or 500 Internal Server Error Let's say user request parameters are correct but there is a bug in my script which causes an error message to appear instead of a proper response…
Richard Knop
  • 81,041
  • 149
  • 392
  • 552