If the server returns a Non-Ok HTTP status code (anything below 200 or above 299), then an error toast will be displayed. Not sure if the error should include the statusText (provides limited information), response text (might be too verbose?).
Note: I am not a typescript/javascript expert, kindly review and I would be happy to make more changes.
If the server returns a Non-Ok HTTP status code (anything below 200 or above 299), then an error toast will be displayed. Not sure if the error should include the statusText (provides limited information), response text (might be too verbose?).
Note: I am not a typescript/javascript expert, kindly review and I would be happy to make more changes.