create JSON.parse and statusCode errors