case400:returnnls.localize('status.400','Bad request. The request cannot be fulfilled due to bad syntax.');
case401:returnnls.localize('status.401','Unauthorized. The server is refusing to respond.');
case403:returnnls.localize('status.403','Forbidden. The server is refusing to respond.');
case404:returnnls.localize('status.404','Not Found. The requested location could not be found.');
case405:returnnls.localize('status.405','Method not allowed. A request was made using a request method not supported by that location.');
case406:returnnls.localize('status.406','Not Acceptable. The server can only generate a response that is not accepted by the client.');
case407:returnnls.localize('status.407','Proxy Authentication Required. The client must first authenticate itself with the proxy.');
case408:returnnls.localize('status.408','Request Timeout. The server timed out waiting for the request.');
case409:returnnls.localize('status.409','Conflict. The request could not be completed because of a conflict in the request.');
case410:returnnls.localize('status.410','Gone. The requested page is no longer available.');
case411:returnnls.localize('status.411','Length Required. The "Content-Length" is not defined.');
case412:returnnls.localize('status.412','Precondition Failed. The precondition given in the request evaluated to false by the server.');
case413:returnnls.localize('status.413','Request Entity Too Large. The server will not accept the request, because the request entity is too large.');
case414:returnnls.localize('status.414','Request-URI Too Long. The server will not accept the request, because the URL is too long.');
case415:returnnls.localize('status.415','Unsupported Media Type. The server will not accept the request, because the media type is not supported.');
case500:returnnls.localize('status.500','Internal Server Error.');
case501:returnnls.localize('status.501','Not Implemented. The server either does not recognize the request method, or it lacks the ability to fulfill the request.');
case503:returnnls.localize('status.503','Service Unavailable. The server is currently unavailable (overloaded or down).');
default:returnnls.localize('status.416','HTTP status code {0}',status);
@@ -366,8 +368,8 @@ export class JSONSchemaService implements IJSONSchemaService {
varerrors=jsonErrors.length?[nls.localize('json.schema.invalidFormat','Unable to parse content from \'{0}\': {1}.',toDisplayString(url),jsonErrors[0])]:[];
returnnewUnresolvedSchema(schemaContent,errors);
},
error=>{
varerrorMessage=nls.localize('json.schema.unabletoload','Unable to load schema from \'{0}\': {1}',toDisplayString(url),error.responseText||error.toString());
(error:http.IXHRResponse)=>{
varerrorMessage=nls.localize('json.schema.unabletoload','Unable to load schema from \'{0}\': {1}',toDisplayString(url),error.responseText||http.getErrorStatusDescription(error.status)||error.toString());