added proper response to error