Add a new raise_on_5xx configuration option. Refactor way that configurations are initialized. Make sure there are default values for configurations when not configured.
Implement raise_on_5xx.
Update docs.
Refactor error handling.