Skip to main content
replaced http://stackapps.com/ with https://stackapps.com/
Source Link

A related, but critical, concern is that any error raised as the result of a JSONP API call needs to be JSON with a 200 status, not HTML. We covered this in this issue: API Suggestion: suppress http error code when jsonp is specifiedAPI Suggestion: suppress http error code when jsonp is specified

A related, but critical, concern is that any error raised as the result of a JSONP API call needs to be JSON with a 200 status, not HTML. We covered this in this issue: API Suggestion: suppress http error code when jsonp is specified

A related, but critical, concern is that any error raised as the result of a JSONP API call needs to be JSON with a 200 status, not HTML. We covered this in this issue: API Suggestion: suppress http error code when jsonp is specified

edited tags
Link
Kevin Montrose
  • 18.7k
  • 6
  • 35
  • 62
added 501 characters in body
Source Link
Sky Sanders
  • 12.1k
  • 3
  • 32
  • 60

Kevin, it is important that this issue gets attentionUPDATE:

I am being told that this is by design.

I could not disagree more.

The inconsistent 503 throttling issue aside, the API is JSON based. HTML errors serve no purpose in response to an API request.

Regardless of the whys, api.stackoverflow.com behaves as has come to be expected, while the others do not.

I encourage library and app developers to switch the target site for any test suites from api.stackoverflow.com to any other endpoint, especially for consecutive page requests to understand the purpose of this post.


Kevin, it is important that this issue gets attention

UPDATE:

I am being told that this is by design.

I could not disagree more.

The inconsistent 503 throttling issue aside, the API is JSON based. HTML errors serve no purpose in response to an API request.

Regardless of the whys, api.stackoverflow.com behaves as has come to be expected, while the others do not.

I encourage library and app developers to switch the target site for any test suites from api.stackoverflow.com to any other endpoint, especially for consecutive page requests to understand the purpose of this post.


added 61 characters in body
Source Link
Sky Sanders
  • 12.1k
  • 3
  • 32
  • 60
Loading
added 5 characters in body
Source Link
Sky Sanders
  • 12.1k
  • 3
  • 32
  • 60
Loading
deleted 30 characters in body
Source Link
Sky Sanders
  • 12.1k
  • 3
  • 32
  • 60
Loading
added 1 characters in body; added 168 characters in body; edited body
Source Link
Sky Sanders
  • 12.1k
  • 3
  • 32
  • 60
Loading
Source Link
Sky Sanders
  • 12.1k
  • 3
  • 32
  • 60
Loading