Throw custom exceptions on bad requests