diff --git a/jodd-http/src/main/java/jodd/http/HttpResponse.java b/jodd-http/src/main/java/jodd/http/HttpResponse.java
index <HASH>..<HASH> 100644
--- a/jodd-http/src/main/java/jodd/http/HttpResponse.java
+++ b/jodd-http/src/main/java/jodd/http/HttpResponse.java
@@ -171,6 +171,9 @@ public class HttpResponse extends HttpBase<HttpResponse> {
 			httpResponse.httpVersion(line.substring(0, ndx));
 
 			int ndx2 = line.indexOf(' ', ndx + 1);
+			if (ndx2 == -1) {
+				ndx2 = line.length();
+			}
 			httpResponse.statusCode(Integer.parseInt(line.substring(ndx, ndx2).trim()));
 
 			httpResponse.statusPhrase(line.substring(ndx2).trim());
Fixes exception when response status phrase is missing (fixes #<I>)