Skip to content

Reply 404 whenever no body and file not found #96

@rstriquer

Description

@rstriquer

If file is not found when replying it uses body but it would be nice to return 404 whenever the body part is not placed/defined in yml control file.

Sample control yml part related to question

- request:
    url: ^/api/prod/(\d*)$
    method: GET
  response:
    status: 200
    file: data/api/prod/<% url[1] %>.json

Would this proposal be something useful or does it have a way to config this way already?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions