Questions tagged [http-status-codes]

HTTP status codes are a set of standardized codes returned in an HTTP web response. Questions about why a service is (unexpectedly) returning a status code should not use this tag.

For a full list of the status codes see the HTTP 1.1 specification, WebDAV specification, RFC 6585, and the IANA list of status codes.

HTTP status codes have specific meanings which are outlined in the specification that they were created in. They can be used in contexts outside of what the specification states, but must adhere to any conditions that have been established in the specification.

1693 questions
0
votes
1 answer

Angular and bootstrap: elegant way to display post response

I'm working on a RESTful application structured like this: Backend: Django with Django Rest Framework API Frontent: Angular 2 UI: Bootstrap 4 When I post data from Angular to my backend REST api, DRF returns differents datas (with status code)…
Ben
  • 3,972
  • 8
  • 43
  • 82
0
votes
2 answers

API rest response code for not handle endpoint

I have /rest/drink/categories?alcohol=true which is return 200 status code with list of drink categories that have alcohol in it, e.g. 200 ['wine','beer'] I wonder what status code should I use, if a user hit a none handled path like below…
rawData
  • 729
  • 4
  • 10
  • 17
0
votes
0 answers

Determine HTTP status for multiple requests

I need to implement a request that uses multiple independent requests. I have tried to understand what is the convention for determining the status in the situation where there are different status codes for different requests. (if there is a…
0
votes
1 answer

How I could return a "warning" as response in my REST API?

I'm trying to figure out how I could communicate to the client of my REST API a warning response, instead of an error or success. I'm familiar with the practices to return error codes and the use of http status codes. Something like this: { …
Dherik
  • 17,757
  • 11
  • 115
  • 164
0
votes
0 answers

How does proxy or gateway deal with upstream status code?

Right now we are writing a gateway server, it receives a request from client, modify it and send the modified request to upstream, then copy response back to client. Here we come out a problem that, what if upstream returns HTTP status code 500,…
dastan
  • 1,006
  • 1
  • 16
  • 36
0
votes
1 answer

Why do we send 302 on signup and login?

Typically, it seems that most web applications will respond with a 302 if a new user signs up or an old user signs in. i.e. client ---signup req-----------------------> server server ---302 Temporarily Moved or Found---> client Doesn't it make more…
steviesh
  • 1,740
  • 6
  • 19
  • 33
0
votes
0 answers

Get the correct HTTP Status Code in PHP when website is protected against scraping by the Distill Network

I am trying to get the redirect location of a website When I make a cURL request, I get a 405 Not Allowed code in the response. Using SEOBook.com's Server Header Checker the response is 200 OK. In my tests I only found web-sniffer.net to get the…
0
votes
1 answer

How to resolve an aborted request on awaited call to HttpStatusCode?

I'm awaiting a call to send a push notification using the Aero Gear .Net client. The return value from the call to push is a System.Net.HttpStatusCode. The expected code if the push is successful is "Accepted". But when I await the call to the…
Brian Var
  • 6,029
  • 25
  • 114
  • 212
0
votes
1 answer

$.post form with facebox and redirect

Using Facebox with .NET (Web Forms) is painful--this primarily HTML site was designed by someone else. I may have IIS (7.5) issues as well. This Facebox pop-up is in a separate file, login.html, that is called from…
David Fox
  • 10,603
  • 9
  • 50
  • 80
0
votes
1 answer

How to interpret HTTP Status Code 302 in an IIS web log

I am looking at my IIS web log and notice some log records with an sc-status of 302. I did research and am only more confused. At first, it looks simple, if a little vague. "This is an example of industry practice contradicting the standard. …
user4864716
0
votes
1 answer

Status code for updating with same values

what should be the status code for updating an entity with same values ex if i have an entity employee in my database with attributes employee_id=123,employee_name='xyz',gender='male' *what should be the Status code for Update request fired with…
Mahi Tej Gvp
  • 984
  • 1
  • 14
  • 34
0
votes
1 answer

Specific Array to CSV file

I have a problem with sending data from a table to a CSV file. Array [link1] => HTTP Code [link2] => HTTP Code [link3] => HTTP Code [link4] => HTTP Code I need to send the data to a CSV file so that the links do not recur. Unfortunately, I don't…
0
votes
1 answer

HTTP Redirect Status Code

I have an ASP.NET website. A user can access the URL /partners/{partner-id} in my app. When that url is invoked, I do two things: 1) I want to log the partner ID and user that requested it and 2) Redirect the url to the partner's website. My…
user70192
  • 13,786
  • 51
  • 160
  • 240
0
votes
0 answers

405 http status code clarification for delete rest api in spring mvc

I have a rest api for delete as RequestMethod.DELETE. I have the @PathVariable("mediaId") String mediaId. When I invoke the api with out a path paramert value as below, I get 405 Method Not…
Harshana
  • 7,297
  • 25
  • 99
  • 173
0
votes
1 answer

How do I return the HTTP Status Code from a method in my Web API to main?

I am working on a console app that can execute a few methods from an existing web API. I want the console app to write the status code that is returned, but I am struggling to find a syntax that works. For example, here is an update method that is…