The rfc defines an instance attribute too to my understanding : https://www.rfc-editor.org/rfc/rfc7807#section-3.1 How do I add it to the exceptions? Looking at the code doesn't seem to be defined? Is there a way to add custom attributes?