Share via

Azure APIM set-status code 102

Peter Stam 46 Reputation points
2022-09-20T10:30:09.903+00:00

Hello,

When using the <set-status> policy to 102 we receive an error. Why can we use all other status codes like 429, 418 etc. but not 102 ?

<policies>
<inbound>
<base />
</inbound>
<backend>
<base />
</backend>
<outbound>
<set-status code="102" reason="processing" />
<base />
</outbound>
<on-error>
<base />
</on-error>
</policies>

{
"error": "The server committed a protocol violation. Section=ResponseStatusLine"
}

Regards,
Peter

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.

0 comments No comments

Answer accepted by question author

JananiRamesh-MSFT 29,446 Reputation points Moderator
2022-09-22T05:00:56.657+00:00

Hi @Peter Stam Thanks for reaching out. I truly believe that's the limitation. 102 response is used in WebDAV (WebDAV stands for Web Distributed Authoring and Versioning) WebDAV is an extension to HTTP that lets clients edit remote content on the web.

http 102 response code is not part of the RFC 2616 since it is used for RFC 2518 (WEBDAV)

let me know incase of further queries, I would be happy to assist you.

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.