aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/server/peertube-problem-document.model.ts
blob: 83d9cea9bfc7446e388d14af26c4df953a51121e (plain) (tree)
1
2
3
4
5
                                             


                                                                           
                                           


























                                                                              
import { HttpStatusCode } from '../../models'
import { OAuth2ErrorCode, ServerErrorCode } from './server-error-code.enum'

export interface PeerTubeProblemDocumentData {
  'invalid-params'?: Record<string, object>

  originUrl?: string

  keyId?: string

  targetUrl?: string

  actorUrl?: string

  // Feeds
  format?: string
  url?: string
}

export interface PeerTubeProblemDocument extends PeerTubeProblemDocumentData {
  type: string
  title: string

  detail: string
  // Compat PeerTube <= 3.2
  error: string

  status: HttpStatusCode

  docs?: string
  code?: ServerErrorCode | OAuth2ErrorCode
}