changed message and uses statusCode object