i'm making api of sorts. user must include token in request, , if it's not valid, throw 403 access denied exception. issue after token has been accepted, there lots of other rules input allowed. if user inputs invalid query parameters, want return status 400 (bad request) small message explaining why request bad. in dev environment see printout of exception, of course, in production environment, status code displayed.
is there way of getting symfony print text passed exception constructor?
note: aware security risk, intend return 403 access denied errors until user has proven identity.
thrown exceptions handled within core twigbundle. symfony allows customize error templates.
take deeper @ this section of documentation.
Comments
Post a Comment