"use strict";(self.webpackChunkbaf=self.webpackChunkbaf||[]).push([[6469],{5853:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>s,default:()=>h,frontMatter:()=>i,metadata:()=>n,toc:()=>o});var d=r(7896),a=(r(2784),r(876));const i={id:"api_baf_shared_errors",title:"Shared errors",sidebar_label:"Shared errors"},s=void 0,n={unversionedId:"user_guide/api_baf_shared_errors",id:"user_guide/api_baf_shared_errors",title:"Shared errors",description:"Possible errors shared by all requests",source:"@site/docs/user_guide/api_baf_shared_errors.md",sourceDirName:"user_guide",slug:"/user_guide/api_baf_shared_errors",permalink:"/user_guide/api_baf_shared_errors",draft:!1,tags:[],version:"current",frontMatter:{id:"api_baf_shared_errors",title:"Shared errors",sidebar_label:"Shared errors"},sidebar:"docs",previous:{title:"Web component integration",permalink:"/user_guide/core_system_elements/sys_elem_integration_web_component"},next:{title:"Manual operations",permalink:"/user_guide/api_baf_manual"}},l={},o=[{value:"Possible errors shared by all requests",id:"possible-errors-shared-by-all-requests",level:3}],u={toc:o},k="wrapper";function h(e){let{components:t,...r}=e;return(0,a.kt)(k,(0,d.Z)({},u,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h3",{id:"possible-errors-shared-by-all-requests"},"Possible errors shared by all requests"),(0,a.kt)("table",null,(0,a.kt)("tbody",null,(0,a.kt)("tr",null,(0,a.kt)("td",{class:"center-aligned",width:"400"},(0,a.kt)("b",null,"HTTP Code")),(0,a.kt)("td",{class:"center-aligned",width:"400"},(0,a.kt)("b",null,"Message")),(0,a.kt)("td",{class:"center-aligned",width:"400"},(0,a.kt)("b",null,"Description")),(0,a.kt)("td",{class:"center-aligned",width:"400"},(0,a.kt)("b",null,"Code"))),(0,a.kt)("tr",null,(0,a.kt)("td",{width:"400"},"401"),(0,a.kt)("td",{width:"400"},"No token provided when required"),(0,a.kt)("td",{width:"400"},"Authentication header not passed when it was required"),(0,a.kt)("td",{width:"400"},"120050")),(0,a.kt)("tr",null,(0,a.kt)("td",{width:"400"},"403"),(0,a.kt)("td",{width:"400"},"Wrong token provided"),(0,a.kt)("td",{width:"400"},"A private token was required, and a public token was handed over"),(0,a.kt)("td",{width:"400"},"120051")),(0,a.kt)("tr",null,(0,a.kt)("td",{width:"400"},"400"),(0,a.kt)("td",{width:"400"},"Fields validation failed"),(0,a.kt)("td",{width:"400"},"Error during input data validation"),(0,a.kt)("td",{width:"400"},"120046")),(0,a.kt)("tr",null,(0,a.kt)("td",{width:"400"},"404"),(0,a.kt)("td",{width:"400"},'"Object name" with id "Object id" not found'),(0,a.kt)("td",{width:"400"},"Requested object not found by id"),(0,a.kt)("td",{width:"400"},"120024")),(0,a.kt)("tr",null,(0,a.kt)("td",{width:"400"},"500"),(0,a.kt)("td",{width:"400"},"Oops! A fatal error occurred. Try it again later."),(0,a.kt)("td",{width:"400"},"Error occurred on the server"),(0,a.kt)("td",{width:"400"},"120047")))),(0,a.kt)("p",null,(0,a.kt)("strong",{parentName:"p"},"Error body example")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-cpp"},'{\n  "code": "120046",\n  "description": "Fields validation is failed",\n  "data": null\n}\n')))}h.isMDXComponent=!0}}]);