Retrieve http response status code as number instead as string

This commit is contained in:
Giuseppe
2018-10-11 11:19:25 +02:00
parent f8620d5c12
commit ead86ad94e
9 changed files with 26 additions and 27 deletions

View File

@@ -93,7 +93,7 @@ export class RemoteDataBuildService {
isSuccessful = resEntry.response.isSuccessful;
const errorMessage = isSuccessful === false ? (resEntry.response as ErrorResponse).errorMessage : undefined;
if (hasValue(errorMessage)) {
error = new RemoteDataError(resEntry.response.statusCode, errorMessage);
error = new RemoteDataError(resEntry.response.statusCode.toString(), errorMessage);
}
}