getCode(), $previous); } public static function forResponseFromArray(Throwable $previous) : self { return new self('Cannot deserialize response', $previous->getCode(), $previous); } public static function forUnexpectedCarriageReturn() : self { throw new self('Unexpected carriage return detected'); } public static function forUnexpectedEndOfHeaders() : self { throw new self('Unexpected end of headers'); } public static function forUnexpectedLineFeed() : self { throw new self('Unexpected line feed detected'); } }