cloudflare / cloudflare-rs

Rust library for the Cloudflare v4 API
256 stars 83 forks source link

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

Open brismithers opened 1 year ago

brismithers commented 1 year ago

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.