mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-08-19 19:36:24 +00:00
12 lines
363 B
Go
12 lines
363 B
Go
package dto
|
|
|
|
import "github.com/pocket-id/pocket-id/backend/internal/apperror"
|
|
|
|
// ErrorDto is the response body returned for every failed request.
|
|
type ErrorDto struct {
|
|
Error string `json:"error"`
|
|
Code apperror.Code `json:"code"`
|
|
Details map[string]any `json:"details,omitempty"`
|
|
RequestID string `json:"request_id,omitempty"`
|
|
}
|