func StatusCodeMapper(err error) int {
	safe, _ := werror.ParamsFromError(err)
	statusCode, ok := safe[httpStatusCodeParamKey]
	if !ok {
		return http.StatusInternalServerError
	}
	statusCodeInt, ok := statusCode.(int)
	if !ok {
		return http.StatusInternalServerError
	}
	return statusCodeInt
}
// StatusCodeMapper maps a provided error to an HTTP status code. If the provided error contains a status code added
// using the StatusCode ErrorParam, returns that status code; otherwise, returns http.StatusInternalServerError.
StatusCodeMapper maps a provided error to an HTTP status code. If the provided error contains a status code added
using the StatusCode ErrorParam, returns that status code; otherwise, returns http.StatusInternalServerError.
// StatusCodeMapper maps a provided error to an HTTP status code . If the provided error contains a status code added // using the StatusCode ErrorParam returns that status code ; otherwise returns http . StatusInternalServerError .
func StatusCodeMapper(err error) int {
	safe, _ := werror.ParamsFromError(err)
	statusCode, ok := safe[httpStatusCodeParamKey]
	if !ok {
		return http.StatusInternalServerError
	}
	statusCodeInt, ok := statusCode.(int)
	if !ok {
		return http.StatusInternalServerError
	}
	return statusCodeInt
}
func StatusCodeMapper ( err error ) int { safe , _ := werror . ParamsFromError ( err ) statusCode , ok := safe [ httpStatusCodeParamKey ] if ! ok { return http . StatusInternalServerError } statusCodeInt , ok := statusCode . ( int ) if ! ok { return http . StatusInternalServerError } return statusCodeInt }
StatusCodeMapper maps a provided error to an HTTP status code.
StatusCodeMapper maps a provided error to an HTTP status code .