Is it possible to host an app like Django inside container on lambda? This could help the Django/postgres apps to scale horizontally easily.
Returning a 500 would look something like this:
{
"statusCode" : 500,
"headers" : {
"content-type": "text/plain; charset=utf-8"
},
"body" : "Some error fetching the content"
}