Simplified error handling for http routes using assert with status code.