GET
/codes_of_conduct/{key}Get a code of conduct
Retrieves information about a specific code of conduct. Supply the code's key to select the code whose details you need.
keystringrequired
The key identifying the code of conduct to retrieve.
200Returns a code of conduct object with required `key`, `name`, `url`, and `html_url` fields and an optional `body` field.
keystringrequired
namestringrequired
urlstringrequired
bodystringoptional
html_urlstringrequired
304Returned when the response has not changed.
404Returned when the requested code of conduct is not found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 404 is returned when key does not identify a code of conduct. Use a key for a code of conduct available on GitHub.