rest.li icon indicating copy to clipboard operation
rest.li copied to clipboard

Don't throw exceptions on 2xx response codes

Open benmccann opened this issue 8 years ago • 4 comments

RestLi seems to throw an exception if the response code is not 200

All 2xx response codes are supposed to indicate Success. E.g. we're returning 204 when there are 0 results and everything is okay. Rest.li throws an exception in this case which causes issues with out monitoring software

Probably only responses codes >= 400 should throw an exception, but certainly no 2xx response code should

benmccann avatar Aug 02 '18 19:08 benmccann

Can you give an example of why you think Rest.Li is throwing an exception on anything but 200?

joelhare avatar Aug 03 '18 23:08 joelhare

@nnradiora823 @linjer @skylarbpayne would you be able to share some details around Rest.li throwing an exception when the response code is not 200?

benmccann avatar Aug 04 '18 00:08 benmccann

@linjer suggested I may have been mistaken and the issue was on our side and not on the rest.li side

benmccann avatar Aug 16 '18 19:08 benmccann

Okay, thanks for following up.

joelhare avatar Aug 22 '18 22:08 joelhare