These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Proper HTTP Status Codes

First post
Author
CCP Prism X
C C P
C C P Alliance
#1 - 2013-05-03 11:58:19 UTC
Sup gang,

Just thought I'd drop a quick notification about the HTTP status code responses of the API changing.

Currently the API pretty much returns a 200 response on every response regardless of wether it's actually OK or not.
We'd very much like to change that to return some more sane statuses (statii?) when appropriate, if only for our internal IIS logs which keep telling us that the API is just running fine and dandy when we know it's not.

Any worries, comments and general dev bashing welcome!
Salpun
Global Telstar Federation Offices
Masters of Flying Objects
#2 - 2013-05-03 12:15:24 UTC
Time line on this change?

If i dont know something about EVE. I check https://wiki.eveonline.com/en/wiki/ISK_The_Guide

See you around the universe.

CCP Prism X
C C P
C C P Alliance
#3 - 2013-05-03 13:56:35 UTC
As soon as Lady Fortune allows. This is really keeping us form properly debugging the actual problem with the API.
Malcanis
Vanishing Point.
The Initiative.
#4 - 2013-05-03 15:15:45 UTC
CCP Prism X wrote:
(statii?)
Any worries, comments and general dev bashing welcome!



The word you are looking for is "states"

Hope this helped


"Just remember later that I warned against any change to jump ranges or fatigue. You earned whats coming."

Grath Telkin, 11.10.2016

xHjfx
The Legion of Spoon
Curatores Veritatis Alliance
#5 - 2013-05-03 16:21:46 UTC
The only worry I have is you won't implement it fast enough .. Rabble rabble

Nice change though :)
Tonto Auri
Vhero' Multipurpose Corp
#6 - 2013-05-03 17:51:40 UTC
And not yet a century passed?... Did someone died?

Two most common elements in the universe are hydrogen and stupidity. -- Harlan Ellison

salacious necrosis
Garoun Investment Bank
Gallente Federation
#7 - 2013-05-08 21:13:53 UTC
In which situations would you return non-200? Just server errors (i.e. 5xx)? Would things like authentication errors become 401? I guess the meta question is are you planning to map some/all of the existing API error codes to HTTP codes instead?

Use EveKit ! - Tools for EVE Online 3rd party development

Cyerus
University of Caille
Gallente Federation
#8 - 2013-05-08 22:50:21 UTC
salacious necrosis wrote:
In which situations would you return non-200? Just server errors (i.e. 5xx)? Would things like authentication errors become 401? I guess the meta question is are you planning to map some/all of the existing API error codes to HTTP codes instead?

I'm wondering about the same thing.
Tonto Auri
Vhero' Multipurpose Corp
#9 - 2013-05-08 22:55:54 UTC
salacious necrosis wrote:
In which situations would you return non-200? Just server errors (i.e. 5xx)? Would things like authentication errors become 401? I guess the meta question is are you planning to map some/all of the existing API error codes to HTTP codes instead?

That would be the only logical answer.

Two most common elements in the universe are hydrogen and stupidity. -- Harlan Ellison