[5.0] Ability To Set errorsKey For An Error Response

Resond of #6241
Merge pull request #6511 from Marwelln/patch-4

[5.0] Ability To Set errorsKey For An Error Response