Skip to content

Reply 404 whenever no body and file not found #96

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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