- fixed error detection
- replaced all occurences of ErrorResponse