feat: improve the ResponseStatus interface to be more informative #68
Closed
Description
Description
The ResponseStatus interface allows to subscribe to all or to specific events of the response object, however it is inconsistent and can be improved a lot.
First of all instead of being a ResponseStatus it can be a RequestState to check both the Request and Response objects.
It should also provide a property with informational data inside like the thrown exception or the location of the redirect.
Requirements
- Move the ResponseStatus from the response to the request object.
- Add informative data useful to the user like the redirect location or the exception thrown.
- Update the documentation
Metadata
Assignees
Labels
Projects
Status
Closed