add bad request error processor callback.
refactor bad request processor arguments and add bad request response.