mattermost / mattermost-plugin-github

GitHub plugin for Mattermost
Apache License 2.0
156 stars 146 forks source link

Don't return an 500 error when the plugin is not configured #800

Closed hanzei closed 2 weeks ago

hanzei commented 3 weeks ago

Summary

https://www.rfc-editor.org/rfc/rfc9110.html#name-422-unprocessable-content states

The 422 (Unprocessable Content) status code indicates that the server understands the content type of the request content (hence a 415 (Unsupported Media Type) status code is inappropriate), and the syntax of the request content is correct, but it was unable to process the contained instructions. For example, this status code can be sent if an XML request content contains well-formed (i.e., syntactically correct), but semantically erroneous XML instructions.

Ticket Link

https://hub.mattermost.com/private-core/pl/1jafc1wuftnmzygdittxd73nia