Comments (4)
My understanding is that 102 is a code that should be sent as an interim for a single response, whereas the polling response has completed successfully, so 200 is more correct. Our position in general is that the HTTP status code refers to the specific HTTP call rather than the overarching operation.
from api-guidelines.
@edent The 200 response refers to the client making a GET request on a status resource. That status/progress resource is retrieved successfully and so the 200 is appropriate. How the progress resource reports the state of the operation is not defined by HTTP, but in the pattern doc I linked to I make some suggestions.
from api-guidelines.
I think we're comfortable with the current use of the codes here, so 'm going to close this one.
from api-guidelines.
Hi there,
I started following the guidelines on 200 with a Retry-After, however, I quickly found that other frameworks such as jQuery does not support 200 with a Retry-After. An Article from Mozilla indicates that Retry-After is used with "413 Payload Too Large" and "503 Service Unavailable".
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
Also another article states the header can be used with 503 or 3XX: https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
The problem is I then have to manually write code on these frameworks which have followed "standards" for the implementation. For example, if I try and get a Retry-After from a $.ajax call and I try to get headers, by default it jQuery will ignore the Retry-After header!
I'm not sure which standard / guideline is correct here, but I don't feel very confident with using 200 - unless I am missing something here.
Many thanks,
WhozDougie
from api-guidelines.
Related Issues (20)
- Shared Type Design Pattern
- HTTP Return Codes don't mention HTTP HEAD HOT 8
- Vanity url is broken with leading slash HOT 2
- Guidance on response payload with 201
- arbitrary JSON pattern/anti-pattern
- Add guidance for pageable post operations
- Fix content table in the main Graph guidelines. merger enum and evolvable enum patterns
- querying arbitrary number of keys in a dictionary insted HOT 1
- Add clarity to expand requirement
- The 'at' naming convention
- Xbox box 360 live
- Vague guidelines about point query support
- Error message localization HOT 1
- Restrictions for openType
- ??
- _Originally posted by @mmtayyar in https://github.com/CVEProject/cve-schema/issues/283_
- Have guidance for when to use unschematized models, and what patterns we have available for unschematized models
- Why does collection response use `value` property instead of `values` in Azure API guidelines? HOT 2
- Re-examine guidance for including eTag in response to PUT request
- Add guidelines to prefer "flat" over "nested" structures HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api-guidelines.