Returns '500 Internal Server Error' when panic occurs in controller