func StatusCode(err error) int {
	if err == nil {
		return 0
	}
	if coder, ok := err.(statusCoder); ok {
		return coder.StatusCode()
	}
	return http.StatusInternalServerError
}
// StatusCode returns the HTTP status code embedded in the error, or 500 if
// there is no specific status code.
StatusCode returns the HTTP status code embedded in the error, or 500 if
there is no specific status code.
// StatusCode returns the HTTP status code embedded in the error or 500 if // there is no specific status code .
func StatusCode(err error) int {
	if err == nil {
		return 0
	}
	if coder, ok := err.(statusCoder); ok {
		return coder.StatusCode()
	}
	return http.StatusInternalServerError
}
func StatusCode ( err error ) int { if err == nil { return 0 } if coder , ok := err . ( statusCoder ) ; ok { return coder . StatusCode ( ) } return http . StatusInternalServerError }
StatusCode returns the HTTP status code embedded in the error, or 500 if
there is no specific status code.
StatusCode returns the HTTP status code embedded in the error or 500 if there is no specific status code .