func IsBadRequest(err error) bool {
	return Code(err) == 400
}
IsBadRequest determines if err is an error which indicates a BadRequest error.
It supports wrapped errors.
package errors
func BadRequest(reason, message string) *Error {
	return Errorf(400, reason, message)
}