code: func (e *Error) StatusCode() int {
  	code, ok := errorTypeToStatusCodeMap[e.Type]
  	if !ok || code == 0 {
  		return 500
  	}
  
  	return code
  }
docs: // StatusCode returns the http status code associated with the underlying error type