Server handles exceptions thrown from the request