- Fix an error when running POST requests in non-browser environments ("FormData is not defined").
- Add log levels to specify the amount of data to be logged.
- Add TypeScript type definitions.
- Add helper functions to easily handle error responses.
- Return the full error object in case of an error.