fix formatting in APIException for PSR