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

How do I return content along with an HTTP 300 response in ASP.NET 4?

I'd like to have an action in my ASP.NET MVC (not Core) application that returns an HTTP response with a status code of 300 and some text/html content. Response.StatusCode = 300; Response.RedirectLocation = url; return View(); However, it seems…
libertyernie
  • 2,590
  • 1
  • 17
  • 13
0
votes
1 answer

What http status to return if a service is missing in order to return data

I have a REST service 'A' that relies on an external service 'B' to perform a task. If 'B' is not available at the time 'A' needs it to fulfill a request, what status should I return? Is a 503 appropriate in this case? In a way we could say that…
Thomas
  • 10,933
  • 14
  • 65
  • 136
0
votes
2 answers

http code for partual success / error

I have a service that takes a list of items to handle. Each of the items is handeled one at the time in the backend, when all items is done the service returns a document containing the original list of items but with a success or failure status on…
drankard
  • 129
  • 6
0
votes
1 answer

Print status code from the post in a json-rpc call

I have a working script that does the job just fine but I can't seem to figure out how to print the status code after the script runs. Can someone please review and provide some guidance and help? import requests import json url =…
John
  • 125
  • 2
  • 10
0
votes
2 answers

Http Status code for client needs to send back the request with additional information

Am a newbie to REST framework Http Status Codes. Creating an API which accepts a request from the client and sends the response back with the information they need to include in the request. Example: If a client sends the invalid account number or…
JaNa V
  • 3
  • 3
0
votes
1 answer

Where can I find explicit documentation on what's NOT covered by Status Code 200?

We had a discussion today about an transfer operation resulting in status code 200, OK. There were two objects returned looking like this. First one being fairly graspable (and following the expected contract). { name: "john", age: 34, city:…
DonkeyBanana
  • 3,266
  • 4
  • 26
  • 65
0
votes
1 answer

HTTP Response code for expired (but not necessarily permanently expired) URL

We have client galleries on our website that are supposed to be available to a certain amount of time. Once the gallery is no longer available, I want to redirect people to a URL that says that the gallery is expired. We also want to ability to…
bdukes
  • 152,002
  • 23
  • 148
  • 175
0
votes
1 answer

Cookie Response Statuscode gets overwritten

We are developing a web based application with Asp.Net MVC (and will somewhen upgrade/migrate to Core 2.0) in which the session of a user might runs out. Now we want to catch that, if the user is still signed in in a browser tab, with the expired…
DerDingens
  • 359
  • 4
  • 10
0
votes
1 answer

bootstrapTable onLoadError's param [status], post url is ASP.NET WebMethod

now,I'm try to use bootstrapTable to load my data that using ASP.NET WebMethod. $.ajax(): url is set like this: "url:mydata.aspx/GetData" and this is work fine. in the other way: $('#mytab').bootstrapTable({ method: 'post', contentType:…
0
votes
1 answer

HTTP Status Codes for declined payment

I'm working on an E-Commerce site and this involves sending card information to an enpoint. This does many things such as query the database for costs and sends off this information to WorldPay. If the payment response is success the repose status…
N. Sainsbury
  • 137
  • 2
  • 15
0
votes
1 answer

Server responce received but status code can not be accessed

I am new to asynchronous tasks and trying to create a login UI. When I make a request from the server with valid credentials, everything works fine. When the credentials are incorrect, I use a set of "if" statements to check what the error code of…
0
votes
0 answers

HttpContext.Response.Redirect(url, false); causes 504 error on Amazon AWS environment

I have next setup: Sitecore(ASP.Net based CMS) 7.2 x 2 content delivery servers hosted in Amazon AWS. Amazon web services(AWS) elastic load balancer(ELB) before Sitecore servers. Akamai caching before AWS.(should not effect I guess) I have next…
0
votes
1 answer

HTTP Status code for invalid resource specified in payload

I have a REST request (Not completely REST though). The input data is received via HTTP payload as XML and thus the record to be read is specified in the xml as, 1 Here, if the ID '1' is not found in database, should I…
0
votes
1 answer

how to when submit, and then use the status code to output warning in ui? angular 2 and above

Requirements: enter choice, press submit. myapi = api; submit(){ this.getDa.postDa(myapi,this.defaultForm) .subscribe( (response)=>{ console.log("response: "+response); }, error=>{ console.log("ERROR, CANNOT…
0
votes
1 answer

Node/Express - How to send get request to check a status code

I am trying to make a URL shortener. I need to take a given URL as a parameter and send a request to that URL just to get the status code. If status = 200, I know I've got a functioning URL, and I'll go ahead and add it to the DB and shorten it.…
luxdlux
  • 3
  • 5