Adds Exception handling for invalid request type