Skip to content

JSON request finishes with non-json response #1530

@dev-dsp

Description

@dev-dsp

async def _finish_error(self, code, message):
"""Finish a JSON request with an error code and descriptive message"""
self.set_status(code)
self.write(message)
await self.finish()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions