Along with the HTTP error code, the API can also return more detailed error codes through a code key in the JSON error response. The response will also contain a message key containing a more friendly error string. Some of these errors may include additional details in the form of Error Messages provided by an errors object.
This can help narrow down the error, for example in POST /users/@me/mfa/totp/enable:
from https://docs.discord.sex/topics/opcodes-and-status-codes#json:
This can help narrow down the error, for example in POST /users/@me/mfa/totp/enable:
vs