func StatusCode(err error) int {
	if err == nil {
		return statusNoError
	}
	if scErr, ok := err.(StatusCoder); ok {
		return scErr.StatusCode()
	}
	return statusInternalServerError
}
// StatusCode extracts an embedded HTTP status code from an error.
StatusCode extracts an embedded HTTP status code from an error.
// StatusCode extracts an embedded HTTP status code from an error .
func StatusCode(err error) int {
	if err == nil {
		return statusNoError
	}
	if scErr, ok := err.(StatusCoder); ok {
		return scErr.StatusCode()
	}
	return statusInternalServerError
}
func StatusCode ( err error ) int { if err == nil { return statusNoError } if scErr , ok := err . ( StatusCoder ) ; ok { return scErr . StatusCode ( ) } return statusInternalServerError }
StatusCode extracts an embedded HTTP status code from an error.
StatusCode extracts an embedded HTTP status code from an error .