• Software
  • Random
  • Reading
  • Life
  • Leadership
Jake LitwickiJake Litwicki
  • Blog
  • Library
  •  Goals
    • 2021 Goals
    • 2020 Goals
    • 2019 Goals
    • 2018 Goals
  • Woodworking
  • The MOAB

exception

Random

API environment contextual responses with Symfony3 Subscribers for Dev vs. Non-Dev

According to the ideal 12 Factor App you want to store your configuration in the specific environment. This includes debugging, logging, and everything else your application does. When building an API, these days you want your response data to be JSON, unless you’re an XML holdout which case you’re still using XML. Read more…

By Jake Litwicki, 5 yearsMarch 13, 2017 ago
Random

Throw Exception based on Accept Header

Symfony has a wonderful onKernelException event that we can expose in an Event Listener to properly handle exceptions in our applications. In one particular use case, we want to handle JSON and XML responses for our exceptions that are thrown via our API. In this case, we need to format and Read more…

By Jake Litwicki, 7 yearsJune 16, 2015 ago
Related Posts
    Categories
    • Gaming
    • Leadership
    • Life
    • Random
    • Reading
    • Software
    • Woodworking

    Jake Litwicki Follow

    Head of Engineering @ AWS Amplify Studio, CLI, and Hosting, #wallpc gamer, #whitesox baseball, tree-hugger.

    jakelitwicki
    jakelitwicki Jake Litwicki @jakelitwicki ·
    11 Aug

    TIL even if you pay the $100 for TSA pre check there’s a 10% chance you don’t get to use it. Also the Seattle TSA line is slower than the “normal” line for the half of my family that weren’t in the 10% — Nice!

    Reply on Twitter 1557870276850749440 Retweet on Twitter 1557870276850749440 Like on Twitter 1557870276850749440 Twitter 1557870276850749440
    jakelitwicki Jake Litwicki @jakelitwicki ·
    3 Aug

    Life is good. Be kind. Hoppy Vacation everyone!

    Reply on Twitter 1554943289706524672 Retweet on Twitter 1554943289706524672 Like on Twitter 1554943289706524672 4 Twitter 1554943289706524672
    Load More

    • Curriculum Vitae
    • 2019 Goals
    • Blog
    Hestia | Developed by ThemeIsle