Add sendSimpleErrorResponse helper

Will reduce duplicated code in future commits.