def METHOD_NAME():
    # Start with a generic default error message.
    data = {'detail': 'Internal Server Error'}
    if settings.DEBUG:
        data['traceback'] = traceback.format_exc()
    return data