Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Submission API
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FIT-Connect
Submission API
Commits
d4b33aa4
Commit
d4b33aa4
authored
3 years ago
by
Jonas Gröger
Browse files
Options
Downloads
Patches
Plain Diff
Update 5_Fehlerverhalten_und_Statuscodes.md
parent
29c00f69
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!42
Update 5_Fehlerverhalten_und_Statuscodes.md
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/5_Fehlerverhalten_und_Statuscodes.md
+28
-28
28 additions, 28 deletions
docs/5_Fehlerverhalten_und_Statuscodes.md
with
28 additions
and
28 deletions
docs/5_Fehlerverhalten_und_Statuscodes.md
+
28
−
28
View file @
d4b33aa4
...
...
@@ -13,7 +13,7 @@ Diese Seite gibt einen Überblick über Fehlerhandling in der XFall RESTful API
nach
[
RFC 7807 (Problem Details for HTTP APIs)
](
https://datatracker.ietf.org/doc/html/rfc7807
)
aus.
*
Fehler besitzen
**immer**
folgende Felder:
*
`type`
: Eine URI (möglicherweise als Website aufrufbar) die den Typ des Fehlers eindeutig klassifiziert.
Beispiel:
`https://
fitko.uber.space
/problem/application-not-found`
Beispiel:
`https://
schema.fitko.de/fit-connect
/problem
s
/application-not-found`
*
`title`
: Ein kurzer und menschenlesbarer Titel des Fehlers. Beispiel:
`Application not found`
*
`status`
: Eine Kopie des HTTP Statuscodes
*
Fehler können
**optional**
weitere Felder beinhalten. API Clients
**müssen**
hiermit umgehen können.
...
...
@@ -30,36 +30,36 @@ abgebildet. Fachliche schon.
### Technische Fehler
|
`type`
des technischen Fehlers | Titel laut
[
httpstatus.es
](
https://httpstatuses.com/
)
| Beschreibung |
|---------------------------------------------------------------|---------------------------------------------------------|--------------|
| https://
fitko.uber.space
/problem/constraint-violation
| 400 Bad Request | |
| https://
fitko.uber.space
/problem/request-binding-error
| 400 Bad Request | |
| https://
fitko.uber.space
/problem/no-handler-found
| 404 Not Found | |
| https://
fitko.uber.space
/problem/missing-request-part
| 400 Bad Request | |
| https://
fitko.uber.space
/problem/missing-request-parameter
| 400 Bad Request | |
| https://
fitko.uber.space
/problem/socket-timeout
| 504 Gateway Timeout | |
| https://
fitko.uber.space
/problem/type-mismatch
| 400 Bad Request | |
| https://
fitko.uber.space
/problem/multipart-error
| 400 Bad Request | |
| https://
fitko.uber.space
/problem/message-not-readable
| 400 Bad Request | |
| https://
fitko.uber.space
/problem/method-not-supported
| 405 Method Not Allowed | |
| https://
fitko.uber.space
/problem/media-type-not-supported
| 415 Unsupported Media Type | |
| https://
fitko.uber.space
/problem/media-type-not-acceptable
| 406 Not Acceptable | |
| https://
fitko.uber.space
/problem/unsupported-operation
| 501 Not Implemented | |
| https://
fitko.uber.space
/problem/invalid-state-transition
| 500 Internal Server Error | |
|
`type`
des technischen Fehlers
| Titel laut
[
httpstatus.es
](
https://httpstatuses.com/
)
| Beschreibung |
|---------------------------------------------------------------
---------
|---------------------------------------------------------|--------------|
| https://
schema.fitko.de/fit-connect
/problem
s
/constraint-violation | 400 Bad Request | |
| https://
schema.fitko.de/fit-connect
/problem
s
/request-binding-error | 400 Bad Request | |
| https://
schema.fitko.de/fit-connect
/problem
s
/no-handler-found | 404 Not Found | |
| https://
schema.fitko.de/fit-connect
/problem
s
/missing-request-part | 400 Bad Request | |
| https://
schema.fitko.de/fit-connect
/problem
s
/missing-request-parameter | 400 Bad Request | |
| https://
schema.fitko.de/fit-connect
/problem
s
/socket-timeout | 504 Gateway Timeout | |
| https://
schema.fitko.de/fit-connect
/problem
s
/type-mismatch | 400 Bad Request | |
| https://
schema.fitko.de/fit-connect
/problem
s
/multipart-error | 400 Bad Request | |
| https://
schema.fitko.de/fit-connect
/problem
s
/message-not-readable | 400 Bad Request | |
| https://
schema.fitko.de/fit-connect
/problem
s
/method-not-supported | 405 Method Not Allowed | |
| https://
schema.fitko.de/fit-connect
/problem
s
/media-type-not-supported | 415 Unsupported Media Type | |
| https://
schema.fitko.de/fit-connect
/problem
s
/media-type-not-acceptable | 406 Not Acceptable | |
| https://
schema.fitko.de/fit-connect
/problem
s
/unsupported-operation | 501 Not Implemented | |
| https://
schema.fitko.de/fit-connect
/problem
s
/invalid-state-transition | 500 Internal Server Error | |
### Fachliche Fehler
|
`type`
des fachlichen Fehlers | Titel laut
[
httpstatus.es
](
https://httpstatuses.com/
)
| Beschreibung |
|---------------------------------------------------------------|---------------------------------------------------------|--------------|
| https://
fitko.uber.space
/problem/access-forbidden | 403 Forbidden | |
| https://
fitko.uber.space
/problem/application-already-fetched | 410 Gone | |
| https://
fitko.uber.space
/problem/application-incomplete | 422 Unprocessable Entity | |
| https://
fitko.uber.space
/problem/application-not-found | 404 Not Found | |
| https://
fitko.uber.space
/problem/not-in-acknowledgeable-state | 422 Unprocessable Entity | |
| https://
fitko.uber.space
/problem/attachment-not-announced | 422 Unprocessable Entity | |
| https://
fitko.uber.space
/problem/attachment-not-found | 404 Not Found | |
| https://
fitko.uber.space
/problem/destination-not-found | 404 Not Found | |
| https://
fitko.uber.space
/problem/empty-attachment | 400 Bad Request | |
|
`type`
des fachlichen Fehlers
| Titel laut
[
httpstatus.es
](
https://httpstatuses.com/
)
| Beschreibung |
|---------------------------------------------------------------
------------
|---------------------------------------------------------|--------------|
| https://
schema.fitko.de/fit-connect
/problem
s
/access-forbidden | 403 Forbidden | |
| https://
schema.fitko.de/fit-connect
/problem
s
/application-already-fetched | 410 Gone | |
| https://
schema.fitko.de/fit-connect
/problem
s
/application-incomplete | 422 Unprocessable Entity | |
| https://
schema.fitko.de/fit-connect
/problem
s
/application-not-found | 404 Not Found | |
| https://
schema.fitko.de/fit-connect
/problem
s
/not-in-acknowledgeable-state | 422 Unprocessable Entity | |
| https://
schema.fitko.de/fit-connect
/problem
s
/attachment-not-announced | 422 Unprocessable Entity | |
| https://
schema.fitko.de/fit-connect
/problem
s
/attachment-not-found | 404 Not Found | |
| https://
schema.fitko.de/fit-connect
/problem
s
/destination-not-found | 404 Not Found | |
| https://
schema.fitko.de/fit-connect
/problem
s
/empty-attachment | 400 Bad Request | |
## Verhalten von API Clients
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment