Return 500 for AWS errors