Open roylee0704 opened 8 years ago
download
From micro-service point of view, there are possibly at least 3 places to screw up:
Find out how to deal with errors at each of the point.
server should not send error code: 1xx http://www.websitepulse.com/kb/1xx_http_status_codes.html
it's absolutely ok to make your own custom error status code as long as you respect its class: 1xx, 2xx, 4xx, 5xx. http://stackoverflow.com/questions/7996569/can-we-create-custom-http-status-codes
question, do we need custom error status code?
if we go according with google-drive-api, they will try not to use any custom status code,
instead, they will customize the message according to the context of error.
see how google test http error.