adding an error to the response so it can always be checked in the JS