flutter_cache_manager icon indicating copy to clipboard operation
flutter_cache_manager copied to clipboard

Provide response body for status code 400

Open redarflap opened this issue 1 year ago • 0 comments

🚀 Feature Requests

Fetch and provide response body for certain error status codes.

🎤 Pitch

Many APIs provide further information in the response on bad client requests (status code 400) This allows to forward that information to the user in order to explain what he did wrong.

Sadly, since flutter_cache_manager handles all errors equally by discarding the response contents, that information is lost, only allowing us to show a generic "invalid request" message.

redarflap avatar Jul 25 '24 09:07 redarflap