cloudflare-rs icon indicating copy to clipboard operation
cloudflare-rs copied to clipboard

ApiError code does not support all error code values (should be u32)

Open brismithers opened this issue 2 years ago • 0 comments

Hi,

ApiError::code is defined as u16. When I get an error code that is higher than 65,535 the error payload fails to deserialize and I am unable to inspect why a request failed.

I believe this should be redefined to u32.

brismithers avatar Aug 15 '23 17:08 brismithers