Skip to content

Commit 2b8889c

Browse files
committed
backward compatible
1 parent 5528b27 commit 2b8889c

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

src/main/java/org/htmlunit/WebResponse.java

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,41 @@
4848
*/
4949
public class WebResponse implements Serializable {
5050

51+
/**
52+
* Forwarder to HttpStatus.SC_OK.
53+
* @deprecated as of version 3.1.0; use {@link HttpClientConverter#OK} instead
54+
*/
55+
@Deprecated
56+
public static final int OK = HttpClientConverter.OK;
57+
58+
/**
59+
* Forwarder to HttpStatus.SC_FORBIDDEN.
60+
* @deprecated as of version 3.1.0; use {@link HttpClientConverter#FORBIDDEN} instead
61+
*/
62+
@Deprecated
63+
public static final int FORBIDDEN = HttpClientConverter.FORBIDDEN;
64+
65+
/**
66+
* Forwarder to HttpStatus.SC_NOT_FOUND.
67+
* @deprecated as of version 3.1.0; use {@link HttpClientConverter#NOT_FOUND} instead
68+
*/
69+
@Deprecated
70+
public static final int NOT_FOUND = HttpClientConverter.NOT_FOUND;
71+
72+
/**
73+
* Forwarder to HttpStatus.SC_NO_CONTENT.
74+
* @deprecated as of version 3.1.0; use {@link HttpClientConverter#NO_CONTENT} instead
75+
*/
76+
@Deprecated
77+
public static final int NO_CONTENT = HttpClientConverter.NO_CONTENT;
78+
79+
/**
80+
* Forwarder to HttpStatus.SC_INTERNAL_SERVER_ERROR.
81+
* @deprecated as of version 3.1.0; use {@link HttpClientConverter#INTERNAL_SERVER_ERROR} instead
82+
*/
83+
@Deprecated
84+
public static final int INTERNAL_SERVER_ERROR = HttpClientConverter.INTERNAL_SERVER_ERROR;
85+
5186
private static final Log LOG = LogFactory.getLog(WebResponse.class);
5287
private static final ByteOrderMark[] BOM_HEADERS = {
5388
ByteOrderMark.UTF_8,

0 commit comments

Comments
 (0)