This will update the response modifier for ApiError to set the content type to application/json. I also noticed there were quite a few locations using IronError::new(error.clone(), error) to convert ApiErrors to IronErrors even though someone had already implemented the From<ApiError> for IronError trait so I went ahead and updated all of the call sites to use the improved instantiation.
This will update the response modifier for ApiError to set the content type to application/json. I also noticed there were quite a few locations using
IronError::new(error.clone(), error)
to convertApiError
s toIronError
s even though someone had already implemented theFrom<ApiError> for IronError
trait so I went ahead and updated all of the call sites to use the improved instantiation.