$e->getCode() 400 500 gibi sonuç vermez. Php hata kodunu verir. Sen http hatalarını yakalamak istiyorsun galiba.