educoder/pest — pull request #54 by romaninsh (2014-05-21 19:55:18+00:00)
Title: Use native PHP Exception Code to transmit HTTP response code

As per PHP manual, Exceptions supports specifying error codes through
2nd argument of constructor:
http://www.php.net/manual/en/exception.getcode.php

This patch makes use of standard PHP functionality to transmit error
codes. This adds support for un-handled response types such as 402, 420
and others.