HAKOM.Versioning.Http.Net.Api.Exceptions Namespace
Contains exception types thrown when HTTP version negotiation fails.
Remarks
Section titled “Remarks”All exceptions in this namespace derive from HakomException and carry unique error codes. They are thrown by the endpoint selection infrastructure when a request cannot be matched to a versioned endpoint.
- MissingAcceptHeaderInRequestException — Thrown when a request does not include an
Acceptheader. Maps to HTTP 406 (Not Acceptable). Error code HK18005. - NoCompatibleVersionFoundException — Thrown when the
api-versionparameter in theAcceptheader does not match any endpoint. The HTTP status code is configurable. Error code HK18006.
| Classes | |
|---|---|
| MissingAcceptHeaderInRequestException | Thrown when a request was made that did not include an Accept header. |
| NoCompatibleVersionFoundException | This error indicates that a request was made against an endpoint using an Accept header that includes an api-version. |
Was this page helpful?Thanks for your feedback!