A set of predefined exception classes for HTTP errors extracted from shelf_exception_response.
Add this to your package's pubspec.yaml file:
dependencies: http_exception: "^0.1.0"
You can install packages from the command line:
$ pub get
Alternatively, your editor might support pub. Check the docs for your editor to learn more.
Now in your Dart code, you can use: