changed CorruptRequest exception to be BadRequest