DRY error response handling
Merge pull request #428 from edpaget/dryer-errors

DRY error response handling