# No SCIM protocol JSON message on authorization error response

**URL:** <https://devforum.okta.com/t/no-scim-protocol-json-message-on-authorization-error-response/32866>\
**Category:** SCIM\
**Tags:** dotnet\
**Created:** [April 8, 2025, 5:51pm UTC](https://devforum.okta.com/t/no-scim-protocol-json-message-on-authorization-error-response/32866 "2025-04-08T17:51:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Smootie](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/smootie/32/5955_2.png) [@Smootie](https://devforum.okta.com/u/Smootie)\
**Post date:** [April 8, 2025, 5:51pm UTC](https://devforum.okta.com/t/no-scim-protocol-json-message-on-authorization-error-response/32866/1 "2025-04-08T17:51:45Z")

</div>

I’ve implemented a .NET 8 SCIM server per your really great blog. Testing has gone very well except for one headache. If I test with a bad or no auth header the response is just the http status with no SCIM protocol JSON. I was expecting the JSON SCIM message and so is your runscope test. My major deviation from your blog is I am using controller instead of minimal framework. What should I be doing in order to properly handle the unauthorized response?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [May 8, 2025, 5:52pm UTC](https://devforum.okta.com/t/no-scim-protocol-json-message-on-authorization-error-response/32866/2 "2025-05-08T17:52:06Z")

</div>

Closed on May 8, 2025, 5:52pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
