fixed use of incorrect error response method