main

mattermost/focalboard

Last updated at: 29/12/2023 09:49

errorResponse.go

TLDR

This file defines a struct called ErrorResponse which represents an error response. It has two fields, Error and ErrorCode, which store the error message and error code respectively.

Classes

ErrorResponse

The ErrorResponse class represents an error response. It is used to structure the error information returned by the server. It has the following fields:

  • Error: The error message. This field is optional.
  • ErrorCode: The error code. This field is optional.
package model

// ErrorResponse is an error response
// swagger:model
type ErrorResponse struct {
	// The error message
	// required: false
	Error string `json:"error"`

	// The error code
	// required: false
	ErrorCode int `json:"errorCode"`
}