throw404IfNotFound method
void
throw404IfNotFound()
Throws a generic Exception if the status code is 404.
Implementation
void throw404IfNotFound() {
if (statusCode == 404) {
throw Exception('Resource not found');
}
}