Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 11, 2018. It is now read-only.

Commit 0e7f7b2

Browse files
authored
Update OAuth2.php
1 parent 9682123 commit 0e7f7b2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/OAuth2.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,11 @@ class OAuth2
270270
* @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-4.1.2
271271
* @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-5.2
272272
*/
273-
const HTTP_FOUND = 302;
274-
const HTTP_BAD_REQUEST = 400;
275-
const HTTP_UNAUTHORIZED = 401;
276-
const HTTP_FORBIDDEN = 403;
277-
const HTTP_UNAVAILABLE = 503;
273+
const HTTP_FOUND = Response::HTTP_FOUND;
274+
const HTTP_BAD_REQUEST = Response::HTTP_BAD_REQUEST;
275+
const HTTP_UNAUTHORIZED = Response::HTTP_UNAUTHORIZED;
276+
const HTTP_FORBIDDEN = Response::HTTP_FORBIDDEN;
277+
const HTTP_UNAVAILABLE = Response::HTTP_SERVICE_UNAVAILABLE;
278278

279279
/**
280280
* @}

0 commit comments

Comments
 (0)