[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Use of error codes in REST API responses

The console and the RHC client use them to specifically detect certain errors.  We would be happier if we got back a symbol/string representing a condition we can detect (things like "domain_not_found", "jenkins_cartridge_cant_connect_to_jenkins" etc).


Console also maps exceptions, an example here: 


----- Original Message -----
> I'd like to open a discussion on whether we can remove error codes from the
> REST API responses.  The error codes are a carry over from the legacy API.
> It is my opinion that they are no longer needed in the REST API.  The
> combination of HTTP status code and error message should be sufficient for
> the REST clients.  I would be interested to know if any clients are using
> them, how and why?
> Thanks,
> Lili

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]