Raise exceptions on bad requests