I really like #rfc7807 for surfacing them to the user: https://tools.ietf.org/html/rfc7807
It includes a detail and instance field which can point the user to a website which explains the error in more detail. https://twitter.com/bethcodes/status/1303409425554665474