added filter to intercept the request/response and set the response to 500 if there are any exception occured while processing a request