HTTP Status Codes and APIs: how the Guardian's Content API does it | Info | guardian.co.uk

We've managed to build up a certain amount of experience over the last few years with building API's. During the building of our latest Content, Identity and Discussion systems, we realised that we have learnt some things that are worth sharing, especially since the reasoning behind these common practices might not be as well understood. Today's story is about why calling our Content API in JSONP format results in a 200 OK response for invalid urls, and why we littered our json response with a seemingly pointless status field.
View Original Article on guardian.co.uk
Shared by 2 people
More from this website
Guatemala overturns former dictator's genocide conviction | World news | guardian.co.uk (guardian.co.uk)
Trial of Efrain Rios Montt, convicted of genocide and crimes against humanity committed in 1980s, thrown into disarray
Mohsin Hamid: 'Islam is not a monolith' | The Guardian (guardian.co.uk)
There are more than a billion Muslims in the world, each with an individual view of life. So why are they viewed as a unified group, asks Mohsin Hamid
Daniel Dennett's seven tools for thinking | Books | The Observer (guardian.co.uk)
Cognitive scientist and philosopher Daniel Dennett is one of America's foremost thinkers. In this extract from his new book, he reveals some of the lessons life has taught him
KPIs and GPS put the geeks in charge of players' pay packets | Football | The Guardian (guardian.co.uk)
The Qatari football association is trying a method of allocating bonuses to players partly based on key performance indicators
Sky Ferreira and the dark side of the music biz | Music | The Guardian (guardian.co.uk)
Signed at 15 as 'Britney meets Lolita', Sky Ferreira's experience as a pop product was chastening. Now, at 20, she's doing her own thing
Conscious computing: how to take control of your life online | Technology | The Guardian (guardian.co.uk)
Twitter, Facebook, Google… we know the internet is driving us to distraction. But could sitting at your computer actually calm you down? Oliver Burkeman investigates the slow web movement
Cannabis: Colorado's budding industry | Society | The Guardian (guardian.co.uk)
Dispensaries selling cannabis chocolates and bath salts, 'bud-tenders' advising on the best blends, even a marijuana university. As Colorado gears up for full legalisation, Jenny Kleeman gets the dope on Denver's 'green rush'
Syphilis, sex and fear | How the French disease conquered the world | Books | The Guardian (guardian.co.uk)
Researching the Borgias, Sarah Dunant learnt how syphilis took Europe by storm during the 1490s, and the far reaching effects it's had ever since
Ukip: the battle for Britain | Politics | The Guardian (guardian.co.uk)
They worship Churchill, Thatcher and the right to smoke, they hate gay marriage and Europe: is Ukip the lunatic fringe or the shape of politics to come? John Harris meets Britain's newest political tribe
Syria mutilation footage sparks doubts over wisdom of backing rebels | World news | The Guardian (guardian.co.uk)
Anti-Assad fighter appears to eat internal organ of dead government soldier in horrific footage
Gemma Arterton: 'Our house was a bit Ab Fab at times' | Film | The Observer (guardian.co.uk)
The actress talks to Tim Lewis about going clubbing with her mum, her new role in a 'neo-feminist vampire movie' and why she has no regrets about playing Bond girl Strawberry Fields
