Yii Framework Forum: Status code for NotFound incorrectly returns 403 - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Status code for NotFound incorrectly returns 403 Rate Topic: -----

#1 User is offline   tomsea 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 84
  • Joined: 25-November 11

Posted 07 July 2015 - 06:42 PM

Hello, using the Yii 2 basic template, in the file views/site/error.php the value returned of $exception->statusCode is 403 for the \yii\web\NotFoundHttpException. It should be 404 according to standard Http codes.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users