Yii 2.0 Rest Api

Hi All,

I couldn’t get this kind of response using REST API in yii 2.0

HTTP/1.1 404 Not Found

Date: Sun, 02 Mar 2014 05:31:43 GMT

Server: Apache/2.2.26 (Unix) DAV/2 PHP/5.4.20 mod_ssl/2.2.26 OpenSSL/0.9.8y

Transfer-Encoding: chunked

Content-Type: application/json; charset=UTF-8

{

"type": "yii\\web\\NotFoundHttpException",

"name": "Not Found Exception",

"message": "The requested resource was not found.",

"code": 0,

"status": 404

}

how to configure for this?