public function respondWithResult( $data = NULL ) {

		$res[ 'status' ] = $this->getStatusText();

		//if it's about laravel validation error
		if ( $this->getErrorCode() && $this->getStatusCode() == 420 ) {

			$res[ 'error' ] = $this->getErrorCode();
			$res[ 'message' ] = $data;

		} else {

			$res[ 'result' ] = $data;

		}

		return $this->respond( $res );

	}