How do you specify an HTTP status code in Cakephp?

EDIT – This question is quite old and covers different versions of the CakePHP framework. Following is a summary of which version each answer applies to. Don’t forget to vote on the solution that helps most. CakePHP 3.x and 4.x – using response object (Roberto’s answer) CakePHP 2.x – using exceptions (Brad Koch’s answer) [preferred … Read more

tech