package errors type ApiError struct { message string status string statusCode int } func NewApiError(errorMessage string, status string, statusCode int) *ApiError { return &ApiError{message: errorMessage, status: status, statusCode: statusCode} } func (e *ApiError) Error() string { return e.message } func (e *ApiError) Status() string { return e.status } func (e *ApiError) StatusCode() int { return e.statusCode }