Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for mapping between Triton Errors and HTTP status codes #6992

Merged
merged 3 commits into from
Mar 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add documentation for mapping between Triton Errors and HTTP status c…
…odes
Tabrizian authored Mar 15, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 3c2c003fbe80c1b6081a4335bd826302dceddd0a
22 changes: 21 additions & 1 deletion docs/protocol/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
# Copyright 2020-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# Copyright 2020-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
@@ -100,3 +100,23 @@ $ curl -6 --verbose "http://[::1]:8000/v2/health/ready"
<
* Connection #0 to host ::1 left intact
```


## Mapping Triton Server Error Codes to HTTP Status Codes

This table maps various Triton Server error codes to their corresponding HTTP status
codes and provides a brief description of each mapping. It can be used as a reference
guide for understanding how Triton Server errors are handled in HTTP responses.


| Triton Server Error Code | HTTP Status Code | Description |
| ---------------------------------------------| --------------------| --------------------------------------------|
| `TRITONSERVER_ERROR_INTERNAL` | 500 | Internal Server Error |
| `TRITONSERVER_ERROR_NOT_FOUND` | 404 | Not Found |
| `TRITONSERVER_ERROR_UNAVAILABLE` | 503 | Service Unavailable |
| `TRITONSERVER_ERROR_UNSUPPORTED` | 501 | Not Implemented |
| `TRITONSERVER_ERROR_UNKNOWN`,<br>`TRITONSERVER_ERROR_INVALID_ARG`,<br>`TRITONSERVER_ERROR_ALREADY_EXISTS`,<br>`TRITONSERVER_ERROR_CANCELLED` | `400` | Bad Request (default for other errors) |




Loading